package Bean;

public class User {
    String name;
    int id;



   //属性赋值的setName()方法和setId()方法
    public void setName(String name) {
        this.name = name;
    }
    public void setId(int id) {
        this.id = id;
    }
    //show()方法实现用户信息输出
    public void show() {
        System.out.println("name="+name+",id="+id);
    }
}
